AXIS_USABLE_LIBS = GLIBC
include $(AXIS_TOP_DIR)/tools/build/Rules.axis

PROGS     = App
ODIR=obj

_OBJ = ThreadObject.o IO.o I2c.o Motors.o SerialMica.o Robot.o Main.o App.o Traductor.o TxtTraductor.o SockTCP.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))

OPTIONS    = -pthread -static

all: $(PROGS)

$(ODIR)/%.o: %.cpp 
	$(CXX) -c -o $@ $< $(CFLAGS)

$(PROGS): $(OBJ)
	$(CXX) $(OPTIONS) $(LDFLAGS) $^ $(LDLIBS) -o $@
	$(STRIP) $@

clean: 
	rm -f $(PROGS) $(ODIR)/*.o core
